package club.gskj.gulimall.product.dao;

import club.gskj.gulimall.product.entity.SkuSaleAttrValueEntity;
import club.gskj.gulimall.product.vo.SkuItemSaleAttrVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * sku销售属性&值
 *
 * @author 康纳-connor
 * @email 2417039231@gmail.com
 * @date 2020-12-27 15:07:43
 */
@Mapper
public interface SkuSaleAttrValueDao extends BaseMapper<SkuSaleAttrValueEntity> {

    List<SkuItemSaleAttrVo> listSaleAttrsBySpuId(Long spuId);

    List<String> getSkuSaleAttrValueAsStringList(Long skuId);
}
